<div class="time-slot-inner-slider" id="time-slot-inner-slider<?php echo isset($id) ? $id : "" ?>">
    <?php foreach (DoctorTimeSlotTable::getWeeklySlotsDates(8) as $weeklySlots): ?>
        <div class="weekly-slots">
            <?php if ($showHeadings): ?>
                <div class="week-headings">
                    <?php foreach ($weeklySlots as $day => $slotDate): ?>
                        <div class="inline-block-day">
                            <div class="day <?php echo strtolower(DoctorTimeSlotTable::getDayByNumber($day)) ?>">
                                <h3><?php echo DoctorTimeSlotTable::getShortDayByNumber($day) ?></h3>
                                <span class="date"><?php echo $slotDate ?></span>
                            </div>
                        </div>
                    <?php endforeach; ?>                
                </div>
            <?php endif; ?>
            <div class="week-slots">
                <?php foreach ($weeklySlots as $day => $slotDate): ?>
                    <div class="inline-block-slot">
                        <div class="day <?php echo strtolower(DoctorTimeSlotTable::getDayByNumber($day)) ?>">
                            <?php foreach ($doctor->getTimeSlotsByDate($slotDate) as $timeSlot): ?>
                                <?php //gfToolkit::debug($timeSlot) ?>
                                <span alt="Book Now" title="Book Now" class="doctor-action-open" id="<?php echo $timeSlot['id'] ?>"><?php echo $timeSlot['time'] ?></span>
                            <?php endforeach; ?>
                        </div>
                    </div>
                <?php endforeach; ?>          
            </div>
        </div>
    <?php endforeach; ?>
</div>